<script>
	export default {
		onLaunch: function() {
			// 检查登录状态
			const userInfo = uni.getStorageSync('userInfo')
			if (userInfo) {
				// 已登录，跳转到首页
				uni.switchTab({
					url: '/pages/index/index'
				})
			} 
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<style>
	/*每个页面公共css */
</style>
